import React, { Component } from 'react'
import store from './store'
export default class List1 extends Component {
  render() {
    const { list } = store.getState()
    return (
      <div>
        <h1>list1</h1>
        { list }
        <button onClick = { () => {
          store.dispatch({
            type: 'CHANGE_LIST',
            payload: [4,5,6]
          })
        }}>456</button>
      </div>
    )
  }
}
